import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import '@/assets/font/iconfont.css'
// 地图
import BaiduMap from 'vue-baidu-map'
// import { information } from '@/api'
import { Image as VanImage, Uploader, Loading, List, Col, Row, Grid, GridItem, Popup, Sticky, Picker, Tabbar, TabbarItem, Icon, IndexBar, Cell, CellGroup, IndexAnchor, Button, NavBar, Form, Field, Toast, Swipe, SwipeItem, Search, Tab, Area, Tabs, DropdownMenu, DropdownItem, Card, Tag } from 'vant'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'YOUR_APP_KEY'
})

Vue.use(VanImage)
Vue.use(Uploader)
Vue.use(Loading)
Vue.use(List)
Vue.use(Col)
Vue.use(Row)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Sticky)
Vue.use(Popup)
Vue.use(Picker)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Area)
Vue.use(Tag)
Vue.use(Card)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Search)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Toast)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.use(Button)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
// async function my () {
//   const req = await information()
//   console.log(req)
// }

// my()

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
